package main

import (
	"fmt"
	"github.com/micro/go-plugins/registry/etcdv3"
)

func main() {
	registry := etcdv3.NewRegistry()
	services, e := registry.GetService("greeter")
	if e != nil {
		fmt.Errorf("get service %v",e)
	}
	for _,s := range services{
		fmt.Println(s.Nodes)
	}
}

